package com.tencreat.common.enums.account;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 文本信息
 *
 * @Date 2018年11月2日
 *
 * @company 深圳腾创互联科技有限公司 {@link www.tencreat.com/#/}
 */
@Getter
public enum RichTextTypeEnum {

    PRIVACY_AGREEMENT(102,"隐私协议"),
    USER_AGREEMENT(103,"用户协议"),
    SHAREHOLDER_AGREEMENT(104,"股东协议"),
    AGENT_AGREEMENT(105,"代理商协议"),
    MERCHANT_SETTLEMENT_AGREEMENT(106,"供应商协议"),
    PARTNERSHIP_AGREEMENT(107,"合伙人协议"),
    BUY_AGREEMENT(108,"购买须知");

    RichTextTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
